'''
Created on Jul 14, 2012

@author: catapult
'''

import pygame
import time
import random
import button

ButtonBoxScreenWidth = 142
ButtonBoxScreenHeight = 450
white = (255, 255, 255)
black = (0, 0 ,0)


class ButtonBox:
    
    def __init__(self):
        self.buttonBoxScreen = pygame.Surface([ButtonBoxScreenWidth, ButtonBoxScreenHeight])
        self.buttonBoxScreen.fill(white)
        self.buttonList = []
        pygame.draw.line(self.buttonBoxScreen, black, [0, 0], [0, 450])
        
    
    def setMoves(self, pokemon):
        self.buttonList = pokemon.moves        
        
    
    def drawMenuButtons(self):
        self.attackButton = button.AttackChoiceButton()
        self.PokeButton = button.PokeChoiceButton()
        self.ItemButton = button.ItemChoiceButton()
        self.FleeButton = button.FleeChoiceButton()
        self.buttonBoxScreen.blit(self.attackButton.image, [9, 46])
        self.buttonBoxScreen.blit(self.PokeButton.image, [9, 147])
        self.buttonBoxScreen.blit(self.ItemButton.image, [9, 248])
        self.buttonBoxScreen.blit(self.FleeButton.image, [9, 349])
        return self.buttonBoxScreen